﻿@using XStudio.XCRF.Web.Models.LabCheck
@model LabCheckWithStd
<table>
    <tr>
        <th>自然杀伤细胞NK</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.NK < Model.labCheckStd.NKmin))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.NK)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.NK > Model.labCheckStd.NKmax))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.NK)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.NK)</td>
            }
        }
        <td>%</td>
    </tr>
    <tr>
        <th>T细胞CD3</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CD3 < Model.labCheckStd.CD3min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD3)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CD3 > Model.labCheckStd.CD3max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD3)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CD3)</td>
            }
        }
        <td>%</td>
    </tr>
    <tr>
        <th>T细胞CD4</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CD4 < Model.labCheckStd.CD4min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD4)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CD4 > Model.labCheckStd.CD4max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD4)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CD4)</td>
            }
        }
        <td>%</td>
    </tr>
    <tr>
        <th>T细胞CD8</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CD8 < Model.labCheckStd.CD8min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD8)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CD8 > Model.labCheckStd.CD8max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD8)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CD8)</td>
            }
        }
        <td>%</td>
    </tr>
    <tr>
        <th>CD4/CD8</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.CD4_CD8 < Model.labCheckStd.CD4_CD8min))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD4_CD8)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.CD4_CD8 > Model.labCheckStd.CD4_CD8max))
            {
                <td style ="color:Red;"> @Html.DisplayFor(model => model.labCheck.CD4_CD8)↑</td>
            }else
            {
                <td> @Html.DisplayFor(model => model.labCheck.CD4_CD8)</td>
            }
        }
        <td></td>
    </tr>
</table>